package com.mostromas.ess.inventory.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mostromas.ess.entities.StockDetailed;
import com.mostromas.ess.inventory.mapper.StockDetailedMapper;
import com.mostromas.ess.inventory.req.StockDetailedREQ;
import com.mostromas.ess.inventory.service.IStockDetailedService;
import com.mostromas.ess.util.base.Result;
import org.springframework.stereotype.Service;

@Service
public class StockDetailedServiceImpl extends ServiceImpl<StockDetailedMapper, StockDetailed> implements IStockDetailedService {
    @Override
    public Result queryPage(StockDetailedREQ req) {
        IPage<StockDetailed> data = baseMapper.findStockDetailedList(req.getPage(), req);
        return Result.ok(data);
    }
}
